<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<style type="text/css">
			.title{
				width: 100%;
				text-align: center;
				border-bottom: 1px dotted grey;
				margin-top: 10px;
			}
			form{
				margin-top: 15px;
				margin-left: 20px;
			}
			table{
				margin-top: 55px;
			}
		</style>
	</head>
	<body>
		<p class="title">后台用户管理</p>
		<form action="<{:U('System/userEditor')}>" method="POST">
			<input type="hidden" name="id" value="<{$id}>"/>
			<table width="100%" border="0" cellspacing="1" cellpadding="0">
				<tr>
					<td width="50%" height="50" align="middle" valign="middle">用户ID：</td>
					<td width="50%" align="center" valign="middle"><input type="text" name="tid" value="<{$one.tid}>"/></td>
				</tr>
				<tr>
					<td height="50" align="middle" valign="middle">密码：</td>
					<td align="center" valign="middle"><input type="text" name="password"/></td>
				</tr>
				<tr>
					<td height="50" align="middle" valign="middle">姓名：</td>
					<td align="center" valign="middle"><input type="text" name="name" value="<{$one.name}>"/></td>
				</tr>
				<tr>
					<td height="50" align="middle" valign="middle">用户类型：</td>
					<td align="center" valign="middle"><input type="radio" id="teacher" name="type" value="1"/>教&nbsp;&nbsp;师<br /><br /><input type="radio" id="infoer" name="type" value="3"/>信息员<br /><br /><input type="radio" id="admin" name="type" value="2"/>管理员<br /><br /></td>
				</tr>
				<tr>
					<td height="50" colspan="2"><center><input type="submit" name="submit" value="提交"/></center></td>
				</tr>
			</table>
		</form>
	</body>
</html>
<script>
	var teacher=document.getElementById("teacher");
	var admin=document.getElementById("admin");
	if ("<{$one.type}>"=="1") {
		teacher.checked=true;
	}else{
		admin.checked=true;
	}
</script>
